/*
 * @Author: zhanglianchang
 * @Date: 2020-08-01 14:39:32
 * @Last Modified by: taoshiwei
 * @Last Modified time: 2019-04-29 14:32:40
 *
 * 企业管理
 */

import { createAPI } from '@/utils/request'

// 获取企业信息
export const CompanyList = data => createAPI('/companys', 'get', data)

// 企业管理添加
export const AddCompany = data => createAPI('/companys', 'post', data)

// 删除信息
export const DeleCompany = id => createAPI(`/companys/${id}`, 'delete', id)

// 企业管理状态
export const CompanyState = (id, state) => createAPI(`/companys/${id}/${state}`, 'post', (id, state))

// 修改信息
export const ReviseCompany = id => createAPI(`/companys/${id}`, 'put', id)

// 企业管理详情
export const GetCompanyDetail = id => createAPI(`/companys/${id}`, 'get', id)
